<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="author" content="order by dede58.com"/>
    <link rel="apple-touch-icon" sizes="76x76" th:href="@{/assets/img/apple-icon.png}">
    <link rel="icon" type="image/png" sizes="96x96" th:href="@{/assets/img/favicon.png}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>天宇酒店后台管理</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />
    <!-- Bootstrap core CSS     -->
    <link th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet" />
    <link th:href="@{/assets/css/animate.min.css}" rel="stylesheet"/>
    <link th:href="@{/assets/css/paper-dashboard.css}" rel="stylesheet"/>
    <link th:href="@{/assets/css/demo.css}" rel="stylesheet" />
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
    <link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>
    <link th:href="@{/assets/css/themify-icons.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/public.js}"></script>
</head>
<body>

<div class="wrapper">
    <div class="sidebar" data-background-color="white" data-active-color="danger">
        <div class="sidebar-wrapper">
            <div class="logo">
                <a class="simple-text">
                    天宇 酒店
                </a>
            </div>

            <ul class="nav">
                <li>
                    <a th:href="@{/admin/room/index}">
                        <i class="ti-panel"></i>
                        <p>首页</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{/admin/room/userList}">
                        <i class="ti-user"></i>
                        <p>人员信息</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{/admin/room/roomList}">
                        <i class="ti-view-list-alt"></i>
                        <p>房间管理</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{/admin/room/roomIncrease}">
                        <i class="ti-pencil-alt2"></i>
                        <p>新增房间</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{/admin/room/orderList}">
                        <i class="ti-map"></i>
                        <p>订单管理</p>
                    </a>
                </li>
                <li class="active">
                    <a th:href="@{/admin/room/comment}">
                        <i class="ti-bell"></i>
                        <p>评论管理</p>
                    </a>
                </li>
                <li class="active-pro">
                    <a th:href="@{/userBack}">
                        <i class="ti-export"></i>
                        <p>退出登录</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <div class="main-panel">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand">统计</a>
                </div>
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a th:href="@{/admin/room/comment}" style="color: darkred" class="dropdown-toggle">
                                <i class="ti-bell"></i>
                                <p class="notification">[[${msg}]]</p>
                                <p>评论消息</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>


        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="header">
                                <h4 class="title">未处理评论</h4>
                                <p class="category">在下方右侧点击"发布"或"删除"</p>
                            </div>
                            <div class="content table-responsive table-full-width">
                                <table class="table table-striped">
                                    <thead>
                                    	<th>房间编号</th>
                                    	<th>房间名称</th>
                                        <th>用户</th>
                                    	<th>评论日期</th>
                                    	<th>评论内容</th>
                                    	<th>发布</th>
                                    	<th>不发布</th>
                                    </thead>
                                    <tbody>
                                        <tr th:each="schedule:${schedules}">
                                            <td>[[${schedule.room.room_id}]]</td>
                                        	<td>[[${schedule.room.room_name}]]--[[${schedule.room.room_quality}]]</td>
                                            <td>[[${schedule.user.user_name}]]</td>
                                            <td>[[${schedule.schedule_comment_time}]]</td>
                                            <td><textarea rows="1" th:placeholder="${schedule.schedule_comment}" readonly></textarea></td>
                                        	<td><a th:data-thing="${schedule.schedule_id}" th:data-things="2" onclick="reduceScheduleComment(this)" style="cursor:pointer">发布</a></td>
                                        	<td><a th:data-thing="${schedule.schedule_id}" th:data-things="3" onclick="reduceScheduleComment(this)" style="cursor:pointer">不发布</a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="card card-plain">
                            <div class="header">
                                <h4 class="title">已处理的评论</h4>
                            </div>
                            <div class="content table-responsive table-full-width">
                                <table class="table table-hover">
                                    <thead>
                                        <th>房间编号</th>
                                        <th>房间名称</th>
                                        <th>用户</th>
                                        <th>评论日期</th>
                                        <th>评论内容</th>
                                        <th>评论状态</th>
                                    </thead>
                                    <tbody>
                                        <tr th:each="schedule:${scheduleList}">
                                            <td>[[${schedule.room.room_id}]]</td>
                                            <td>[[${schedule.room.room_name}]]--[[${schedule.room.room_quality}]]</td>
                                            <td>[[${schedule.user.user_name}]]</td>
                                            <td>[[${schedule.schedule_comment_time}]]</td>
                                            <td><textarea rows="1" th:placeholder="${schedule.schedule_comment}" readonly></textarea></td>
                                            <td th:if="${schedule.schedule_comment_state eq 2}">已经发布显示⭐</td>
                                            <td th:if="${schedule.schedule_comment_state eq 3}">没有发布显示</td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container-fluid">
                <nav class="pull-left">
                    <ul>
                        <li>
                            <a>
                                天宇酒店管理后台
                            </a>
                        </li>
                    </ul>
                </nav>
                <div class="copyright pull-right">
                    Copyright &copy; 2022.hxd support
                </div>
            </div>
        </footer>
    </div>
</div>
</body>
<script th:src="@{/assets/js/jquery-1.10.2.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/bootstrap.min.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/bootstrap-checkbox-radio.js}"></script>
<script th:src="@{/assets/js/chartist.min.js}"></script>
<script th:src="@{/assets/js/bootstrap-notify.js}"></script>
<script th:src="@{/assets/js/paper-dashboard.js}"></script>
</html>